package icu.d4peng.basic.http.feign.support;

import icu.d4peng.basic.core.constant.ProjectConstant;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author d4peng d4peng@qq.com
 * @date 2023-11-26 15:36:16
 */

// @ConfigurationProperties("feign.encoder")
@ConfigurationProperties(prefix = FeignEncoderProperties.PREFIX)
public class FeignEncoderProperties {

	public static final String PREFIX = ProjectConstant.PREFIX + ".feign.encoder";

	/**
	 * Indicates whether the charset should be derived from the {@code Content-Type}
	 * header.
	 */
	private boolean charsetFromContentType = false;

	public boolean isCharsetFromContentType() {
		return charsetFromContentType;
	}

	public void setCharsetFromContentType(boolean charsetFromContentType) {
		this.charsetFromContentType = charsetFromContentType;
	}

}
